package com.sinochem.yunlian.ship.base.biz;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;

import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sinochem.yunlian.ship.base.entity.BsMessageSms;
import com.sinochem.yunlian.ship.base.mapper.BsMessageSmsMapper;
import com.sinochem.yunlian.ship.base.vo.request.SmsFindVo;
import com.sinochem.yunlian.ship.common.biz.BaseBiz;
import com.sinochem.yunlian.ship.common.util.MapUtil;

@Service
public class BsMessageSmsBiz extends BaseBiz<BsMessageSmsMapper, BsMessageSms>{

	

	
	public Page<BsMessageSms> findSmsList(SmsFindVo findVo) throws IllegalAccessException, IntrospectionException, InvocationTargetException {
		Page<BsMessageSms> result= PageHelper.startPage(findVo.getPageNum(),findVo.getPageSize());
		mapper.findSmsList(MapUtil.convertBean(findVo));
		return result;
	}


}
